Digitally programmable phase-lock loop for high-speed data communications

ABSTRACT

Electronic devices are typically coupled together to operate as systems that require the communication of data between two or more devices. Many of these devices includes a communications circuit, such as receiver, transmitter, or transceiver for this purpose. A typical component in these communication circuits is the phase-lock loop, a circuit that in receiver circuits determines the timing of pulses in a received data signal and in transmitter circuits clocks the data out at a predetermined rate. One problem with phase-lock loops and thus the receiver and transmitter circuits that incorporate them is that they are generally tuned, or tailored, to operate at a certain frequency. This means that one cannot generally use a receiver or transmitter circuit having phase-lock loops tuned for one frequency to communicate at another frequency. The inability to communicate at other frequencies limits the usefulness of not only the receiver and transmitter circuits but also their electronic devices. Accordingly, the present inventors devised a digitally programmable phase-lock loop which operates at a frequency selected from a set of two of more frequencies. One such phase-lock loop includes a charge pump, a loop filter, and a voltage-controlled oscillator, all of which are programmable to control the operating frequency of the phase-lock loop and thus devices, such as receivers, transmitters, and transceivers incorporating it. Moreover, the programmability of these three components enables the exemplary embodiment to maintains a constant damping factor and a constant ratio of input frequency to loop bandwidth for each frequency setting, thereby promoting loop stability and rapid settling at each selected frequency.

TECHNICAL FIELD

The present invention concerns data communications between electronic devices or circuits, particularly programmable phase-locked loops suitable for use in high-speed receivers, transmitters, and transceivers.

BACKGROUND

In the computer and telecommunications industries, many electronic devices are typically coupled together to operate as systems. For example, computers are often connected to printers, scanners, cameras, and even other computers. In such systems, a common occurrence is the communication of data between two devices, a sending device and a receiving device.

The sending device generally has the data in the initial form of a set of digital words (sets of ones and zeros). A circuit, known as a transmitter in the sending device, converts each word into a string or sequence of electrical pulses, with each pulse timed according to a data clock, and transmits the timed sequence of pulses through a cable or other connector to the receiving device. The receiving device includes a receiver circuit that first determines the timing of the pulses and then identifies each of the pulses in the signal as a one or zero, enabling it to reconstruct the original digital words.

A key component in both the transmitter and the receiver is the phase-locked loop. The phase-locked loop is a circuit that generates a high-speed clock for transmitting data in the transmitter, and that measures the timing of the pulses in a received data signal. In particular, the phase-locked loop compares the received data signal to an internally produced oscillating signal, and continuously adjusts the frequency of the oscillating signal to match or lock on that of the received data signal.

One problem with phase-locked loops and thus the transmitter and receiver circuits that incorporate them is that they are generally tuned, or tailored, to operate with data signals of a certain frequency. This means that one cannot generally use a transmitter or receiver circuit having a phase-locked loop tuned for data signals of one frequency with data signals of another signal. The inability to communicate at other frequencies limits the usefulness of the transmitter and receiver circuits and their electronic devices.

One approach to allow for an adjustable phase-locked loop is reported in John G. Maneatis, Low-Jitter Process Independent DLL and PLL based on Self-Biased Techniques, IEEE Journal of Solid-State Circuits, Vol. 31, No. 11 (1996). However, the reported circuit appears to be vulnerable to stability problems at gigabit frequencies, which may prevent it from properly locking onto some input signals. Additionally, the circuit includes active resistor components, which the present inventors believe will be difficult to implement with low-voltage power supplies.

Accordingly, there is a need for better programmable phase-locked loops.

To address these and other needs, the present inventors devised a digitally programmable phase-locked loop which operates at a frequency selected from a set of two of more frequencies. An exemplary embodiment of the programmable phase-locked loop includes a phase-frequency detector, a charge pump, a loop filter, a voltage-controlled oscillator, and a frequency divider. The charge pump, loop filter, and oscillator are all responsive to a programmable input which selects the frequency of the phase-locked loop. Notably, the programmability of these three components enables the exemplary embodiment to maintain a constant damping factor and a constant ratio of input frequency to loop bandwidth for each frequency setting, thereby promoting stability and rapid settling at each frequency setting.

Other aspects of the invention include a receiver, transmitter, and transceiver that incorporate a digitally programmable phase-locked loop. One exemplary receiver includes a phase-locked loop with four programmable components: a charge pump, a loop filter, a controlled oscillator, and a transconductor.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 is a block diagram of an exemplary digitally programmable phase-locked loop 100 incorporating teachings of the invention and including a programmable charge pump, a programmable loop filter, and a programmable voltage-controlled oscillator.

FIG. 2 is a schematic diagram of an exemplary programmable charge pump 200 for use in the phase-locked loop of FIG. 1.

FIG. 3 is a schematic diagram of an exemplary programmable loop filter 300 for use in the phase-locked loop of FIG. 1.

FIG. 4 is a diagram of an exemplary programmable voltage-controlled oscillator for use in the phase-locked loop of FIG. 1.

FIG. 5 is a block diagram of an exemplary receiver 500 incorporating phase-locked loop 100.

FIG. 6 is a schematic diagram of an exemplary programmable transconductor for use in the receiver of FIG. 5.

FIG. 7 is a schematic diagram of an exemplary frequency detector for use in the receiver of FIG. 5.

FIG. 8 is a block diagram of an exemplary transmitter 800 incorporating the exemplary phase-locked loop of FIG. 1.

FIG. 9 is a block diagram of an exemplary system 900 incorporating the exemplary receiver and transmitter of respective FIGS. 5 and 6.

DETAILED DESCRIPTION OF EXEMPLARY EMBODIMENTS

The following detailed description, which references and incorporates the above-identified figures, describes and illustrates one or more specific embodiments of the invention. These embodiments, offered not to limit but only to exemplify and teach, are shown and described in sufficient detail to enable those skilled in the art to implement or practice the invention. Thus, where appropriate to avoid obscuring the invention, the description may omit certain information known to those of skill in the art.

FIG. 1 shows an exemplary digital programmable phase-locked loop 100 incorporating teachings of the present invention. In particular, phase-locked loop 100 includes a phase-frequency detector 110, a programmable charge pump 120, a programmable loop filter 130, a programmable voltage-controlled oscillator 140, and a frequency divider 150. Additionally, phase-locked loop 100 includes a reference-clock input node 102 for a reference clock signal and a programmable input 104 for program signal M, a two-bit word in the exemplary embodiment.

Phase frequency detector 110 includes 112 and 114 and outputs 116 and 118. Input 114 is connected to reference-clock input node 102 and input 112 connected to an output 154 of frequency divider 150. Outputs 116 and 118 of the phase-frequency detector are connected respectively to inputs 122 and 124 of programmable charge pump 120.

Programmable charge pump 120, which is also connected to program signal M via a program input 126, has an output 128. Output 128 produces an output current I_(cp) based on program signal M, a reference current I_(ref), and signals received at its inputs 122 and 124. In the exemplary embodiment, output current I_(cp) is effectively a scaled version of the reference current I_(ref), with the scaling selected from a set of predetermined options using the program signal M. Output 128 is connected to input 132 of programmable loop filter 130.

Programmable loop filter 130, which receives program signal M at a program input 134, includes an output node 136. Filter 130 has a discreetly programmable characteristic frequency response. The exemplary embodiment achieves this programmability using a programmable filter resistance R and a substantially constant filter capacitance, with resistance R′ directly proportional to a substantially constant resistance R and inversely proportional to the numerical equivalent of program signal M. (FIG. 3 shows details of one exemplary implementation.) However, the invention is not limited to any particular function of program signal M. Additionally, other embodiments of the invention could implement the programmable loop filter with a programmable capacitor and fixed resistor or with a programmable capacitor and a programmable resistor. Output node 136 is coupled to input 142 of programmable voltage-controlled oscillator 140.

Oscillator 140 additionally includes a program input 144 and an output 146. Program input 144 is connected to receive program signal M, and output 146 provides an oscillating signal of substantially constant amplitude and variable frequency. The variable frequency is a function of the loop filter output magnitude and an oscillator gain K_(o), which itself is a function of program signal M. In the exemplary embodiment, oscillator gain K_(o) is a function of a base oscillator gain K and one of a set of predetermined scalings, with the selected scaling based on the program signal M. (FIG. 4 shows details on one exemplary voltage-controlled oscillator suitable for use within loop 100.) Output 146 is connected to input 152 of frequency divider 150.

Frequency divider 150 divides the frequency of signals at its inputs by a constant factor N. The resulting signal of reduced frequency is communicated through output 154 to input 112 of phase-frequency detector 110. N is a factor of two in the exemplary embodiment. Although not shown as programmable in this exemplary embodiment, other embodiments of the invention could make the factor N a function of the program signal M, with an appropriately adjustable or programmable reference clock.

Operation of the exemplary PLL is characterized by the loop bandwidth ω*_(N) and damping factor ξ*. For a loop having the topology of the exemplary embodiment, the loop bandwidth and damping factor are respectively defined as $\begin{matrix} {\omega_{N}^{*} = \sqrt{\frac{I_{cp}K_{o}}{{NC}_{2}}}} & (1) \\ {\xi^{*} = {\omega_{N}^{*}\frac{{RC}_{2}}{2}}} & (2) \end{matrix}$

where L_(cp) is the magnitude of the charge-pump output current; K_(o) is the gain of the voltage-controlled oscillator, N is the divisor for the frequency divider, R is the resistance in the loop filter, and C₂ is the capacitance in series with the loop resistance R. These equations assume that C₂ is much larger than C₃, a capacitance coupled across the series connection of resistance R and capacitance C₂. An exemplary design goal is provide a capacitance C₂ which is more than ten times greater than capacitance C₃.

These general expressions can be readily modified to account for the specific programmability of the exemplary embodiment. In particular, the exemplary embodiment scales both the charge-pump output current I_(cp) and the gain of the voltage-controlled by the program signal M. Thus, equation (1) can be rewritten to express the loop bandwidth of the exemplary embodiment as $\begin{matrix} {\omega_{N} = \sqrt{\frac{\left( {M*I_{cp}} \right)\quad \left( {M*K_{o}} \right)}{N*C_{2}}}} & (3) \end{matrix}$

Recognizing the M*M term under the radical in equation (3) and using the definition for loop bandwidth in equation (1) allows one to rewrite equation (3) as $\begin{matrix} {\omega_{N} = {{M\sqrt{\frac{I_{cp}K_{o}}{N*C_{2}}}} = {M*\omega_{N}^{*}}}} & (4) \end{matrix}$

Equation (4) shows that the exemplary embodiment allows one to scale the loop bandwidth using program signal M.

Similarly, the generic damping factor can be written to show the programmability of the exemplary embodiment by replacing loop bandwidth (ω*_(N) with ω_(N) and the loop resistor R with R′, their programmable counter parts. This yields $\begin{matrix} {\xi = {\omega_{N}R^{\prime}\frac{C_{2}}{2}}} & (5) \end{matrix}$

where ω_(N) is defined in equation (4) and R′ is defined as R/M. Making these substitutions into equation (5) yield equation (6): $\begin{matrix} {\xi = {{M*\omega_{N}^{*}\frac{{RC}_{2}}{2*M}} = {{\omega_{N}^{*}\frac{{RC}_{2}}{2}} = \xi^{*}}}} & (6) \end{matrix}$

This equation reveals that the damping factor is constant for the range of programming frequencies. Thus, one can fix the damping factor at a constant value, such as 0.707, and have it remain fixed despite changes in the loop bandwidth.

The exemplary phase-locked loop is also characterized by a constant ratio of the reference clock frequency to the loop bandwidth. In other words, $\begin{matrix} {{\frac{f_{{ref} - {clk}}}{f_{N}^{*}} = {constant}},\quad {{{where}\quad f_{N}^{*}} = \frac{\omega_{N}^{*}}{2\pi}}} & (7) \end{matrix}$

This constant ratio follows from recognizing that the reference frequency in the exemplary embodiment is changed to track the desired changes in the loop bandwidth. Thus, changing the loop bandwidth by a factor of M is accompanied by a commensurate change in reference frequency. Equation (8) shows this as $\begin{matrix} {\frac{M*f_{{ref} - {clk}}}{M*f_{N}^{*}} = \frac{f_{{ref} - {clk}}}{f_{N}^{*}}} & (8) \end{matrix}$

In general, operating phased-lock loop 100 entails first establishing or selecting its operating frequency using program signal M and providing a desired reference clock. In the exemplary embodiment, program signal M is a 2-bit word. Table 1 below lists the reference clock and operating frequency associated with some allowable values of program signal M.

TABLE 1 M[1:0] Ref_Clk Operating Frequency 00  62.5 MHZ  1.25 Gb/s 01   125 MHZ  2.50 Gb/s 10 156.25 MHZ 3.125 Gb/s

Other embodiments of the invention use smaller or larger program signals to define the phase-locked loop to operate at higher frequencies and/or with greater frequency granularity in the operating frequency.

FIGS. 2-4 respectively show an exemplary programmable charge pump, an exemplary programmable loop filter, and an exemplary programmable voltage-controlled oscillator, all for use in exemplary phase-locked loop 100. These components accept an exemplary two-bit program signal M[1:0], specifically comprising an M[0] bit and an M[1] bit. Table 2 below shows the bit values for programming these components to one of three different loop bandwidths:

TABLE 2 M[0] M[1] Operating Frequency 0 0  1.25 Gb/s 0 1  2.50 Gb/s 1 1 3.125 Gb/s

In particular, FIG. 2 shows an exemplary CMOS (complementary metal-oxide-semiconductor) programmable charge pump 200 for use as charge pump 120 in the exemplary programmable loop filter. Programmable charge pump 200 includes a programmable current source 210, a programmable current sink 220, and conventional charge-pump circuitry 230. Programmable current source 210 has inputs 212 and 214 coupled respectively to receive program signal M and reference current Iref. Likewise, programmable current sink 220 has inputs 226 and 224 coupled respectively to receive program signal M and reference current Iref. The programmable current sources and sinks provide currents of similar magnitude based on the program signal M and reference current Iref.

In the exemplary embodiment, reference current Iref is about 150 microamps. Additionally, the exemplary embodiment implements the programmable current source and current sink as a current mirror with switched output stages, with each output stage sized to provide a specific amount of current. Thus, to implement the three speeds (data-communication rates) of 1.25, 2.5, and 3.125 Gbps, the exemplary embodiment provides three output stages, with one output stage always connected, and the other two selectively coupled with switches to change the output current. For the 1.25-Gbps mode, only one of the output stages is on; for the 2.5-Gbps mode, two of the stages are on; and for the 3.125-Gbps mode, all of the stages are on, with activation of each stage increasing the amount of current. (Other embodiments can program the charge pump current by using the program signal to control the magnitude of the reference current Iref, for example, by selecting from one or more preset reference currents using a multiplexer or controlling a single current source or sink. Still other embodiments select from one or more separate current mirrors. Thus, the present invention is not limited to any particular programming technique.) The switches are controlled using M[0], M[10], and their respective complements, thereby enabling control over the amount of current available to flow into and out of charge pump circuitry 230.

Charge pump circuitry 230 includes inputs 232, 234, and 236, and outputs 237, and 238. Respective inputs 232, 234, 236, and 237 are coupled to programmable current source 210, UPb output signal from a phase-frequency detector, the DN signal from the phase-frequency detector, and current sink 220. Though not shown because of its conventional nature, circuitry 230 includes a conventional complementary pair of n- and p-type transistors which are controlled by the UP and DN phase-frequency-detector output signals (or their complements), selectively coupling source 210 and sink 220 to output 238. Output 238, which provides the charge-pump output current Icp, is coupled to a programmable loop filter.

FIG. 3 shows an exemplary programmable loop filter 300 for use as loop filter 130 in the exemplary phase-locked loop. Loop filter 300 includes filter node 302, a programmable resistance 310, capacitors 320 and 330, and a ground reference node 340. Programmable resistor 310, which is connected between filter node 302 and capacitor 320, includes an input 311 coupled to receive program signal M, and a number of component resistors, of which resistors 312, 314, and 316 are representative. Component resistors 312, 314, and 316 have respective exemplary values of 590, 325, and 975 Ohms. Respective switches 315 and 317, which are implemented as transmission gates in the exemplary embodiment, are coupled in parallel with resistors 314 and 316, and are controlled by program signal M. In the exemplary embodiment, the M[1] bit of program signal M controls switch 315, and the M[0] bit controls switch 317. The values of the M[1] and M[0] bits in the program signal M switch respective component resistors 314 and 316 out of series with component resistor 312, establishing the resistance value of programmable resistor 310. (Some embodiments of the invention use an additive rather than subtractive technique to control the resistance.)

Coupled between resistor 310 and ground reference node 340 is capacitor 320. In the exemplary embodiment, capacitor 320 is composed of the gate capacitances of six MOSFETs (metal-oxide-semiconductor field-effect transistors). Each of the gate capacitances has a capacitance of 16.67 picofarads, providing a total capacitance of about 100 picofarads.

Capacitor 330 is coupled between filter node 302 and ground reference node 340. In the exemplary embodiment, capacitor 330 is composed of the gate capacitance of a single MOSFET and provides a capacitance of about 1.25 picofarads. Some embodiments could control the characteristic response of loop filter by altering the capacitance alone or in combination with the resistance of the loop filter. Other embodiments may use digital filters. Thus, the present invention is not limited to any particular programming technique.

FIG. 4 shows an exemplary programmable voltage-controlled oscillator 400 for use as oscillator 140 in the exemplary phase-locked loop. In addition to program signal bits (inputs) M[1:0], and their respective complements, oscillator 400 includes loop-filter control input 410, input MOSFET 412, a 1.25-Gbps current-sink stage 420, a 2.5-Gbps current-sink stage 430, a 3.125-Gbps current-mirror stage 440, bias circuitry 450, and a ring oscillator 460.

In 1.25-Gbps mode as determined by the program inputs, stages 430 and 440 are turned off, leaving MOSFET 412 to control the current through current-sink stage 420. Loop filter output voltages at control input 410 thus result in a predetermined control current Icntrl drawn from an input node 452 of bias circuitry 450. In response, bias circuitry produces a set of output signals 454, which in the exemplary embodiment, includes a Pbias signal; an Nbias signal, and an Nbiasc signal. These signals, coupled to corresponding inputs 462 of ring oscillator 460, govern the gain and frequency of the ring oscillator. Ring oscillator produce corresponding oscillating signals at output 464.

In 2.5-Gbps mode, stages 420 and 430 are turned on and stage 440 is turned off, leaving current-sink stages 420 and 430 to both draw current from node 452 and thus increasing the gain of the oscillator beyond that provided with stage 420 alone. Similarly, in 3.125-Gbps mode, stages 420, 430, and 440 are turned on, further increasing the gain of the oscillator. Thus, the exemplary embodiment uses an additive technique to build the current controlling the gain of the oscillator.

Other embodiments of the invention implement the programmable oscillator use other techniques. For example, some embodiments simply switch on or off specific current sinks (or other circuits) to set the control current to the appropriate level, or select the desired current from a set of predetermined current sources or sinks, with the selected current independent of the value of the other currents. Other embodiments may switch on or off specific current mirrors or portions of current mirrors to develop appropriate control currents. Still other embodiments may control the oscillator gain using voltage-based techniques. Thus, the invention is not limited to any particular method of programming the oscillator gain.

Exemplary Receiver Incorporating Programmable Phase-locked Loop

FIG. 5 shows an exemplary receiver 500 which incorporates the exemplary phase-locked loop 100 of FIG. 1 along with a phase detector 510, a programmable transconductor 520, and a frequency detector 530.

Phase-locked loop 100 includes a phase-frequency detector 110, a programmable charge pump 120, a programmable loop filter 130, a programmable voltage-controlled oscillator 140, and a frequency divider 150. Additionally, phase-locked loop 100 includes a reference-clock input node 102 for a reference clock signal and a program input 104 for program signal M, a 2-bit word in the exemplary embodiment.

Phase detector 510 includes inputs 512 and 514 and outputs 516, 518, and 519. Input 512 is connected to data input 512, and input 514 is connected to twenty multi-phase clock outputs 146 of programmable voltage-controlled oscillator 140. In the exemplary embodiment, the phase detector oversamples the input data by a factor of two and provides five parallel data outputs at one-tenth he input data rate. More particularly, the input data lines comprise complementary data lines, and ten high-speed capture latches (not shown) are used to convert the serial input data into parallel data paths. That is, the input data is sampled twice per data bit. One sample is in the middle of the data period, and the other sample is at the edge of the data period. The edge sample is used to adjust the phase of the phase-locked loop. The middle sample is used as one of the five parallel data outputs.

The five middle samples are also used in a logic function to determine the validity of the edge samples. When two adjacent middle samples have the same value, then the intervening edge sample is invalid and is rejected. When two adjacent middle samples differ in value, the magnitude of the intervening edge sample is valid and the sign of the value needs to be determined. A positive sign is used for a positive transition, and a negative sign is used for a negative transition. When valid, the resulting edge sample is proportional to the phase error.

When the input data is provided at, for example, 1.25 Gbs, each path operates with a 0.125 GHz clock. The phase detector, therefore, produces a complementary pair of analog voltages at outputs 516 and 518, which have a differential voltage proportional to the phase error between the input data and the oscillator frequency. Outputs 516 and 518 of phase detector 510 are connected respectively to inputs 522 and 524 of programmable transconductor 520. Output 519 provides output data to other circuitry (not shown) that aligns and decodes the received data.

Programmable transconductor 520, which is connected to program signal M via a program input 526, has an output 528. Output 528 produces an output current L_(cp) based on program signal M, the transconductance of the transconductor, and signals received at its inputs 122 and 124. In the exemplary embodiment, the transconductance is selectable from a set of predetermined options using the program signal M. Output 128 is connected to input 132 of programmable loop filter 130.

FIG. 6 shows an exemplary implementation of programmable transconductor 520. This exemplary implementation provides two different selectable transconductances values based on program signal M. More particularly, the exemplary implementation includes an input transconductance stage 610 comprising p-channel MOSFETs M1 and M2 which have their gates coupled respective to inputs 522 and 524 (in FIG. 5.) Input stage 610 produces a differential current through transistor M1 and transistor M2 based on the differential voltage at inputs 522 and 524.

Current through transistor M1 is mirrored through a current mirror 612 comprising MOSFETs M3B, M3A, M5A and M5B to a current mirror 614 comprising MOSFETs M7A, M7B, M8A1 and M8B1, to output node 528. In high-speed mode, switches 616 and 618 are turned on, adding additional MOSFETs M8A2 and M8B2 to current mirror 614. MOSFET's M8A2 and M8B2 are sized to increase the current mirrored to node 528 by the square of the frequency-change factor. Thus, if the frequency is doubled from 1.25 Gbs to 2.5 Gbs, transistors M8A2 and M8B2 are sized such that in combination with the transistors M8A1 and M8B1, current mirror 614 produced a current that is four times greater than that previously produced by transistors M8A1 and M8B1. Also, current mirror 614 can be further augmented with transistors M8A3 and M8A4 through activation of switches 620 and 622 to further increase the current at node 528 to allow for a third frequency option of, for example, 3.125 Gbs. Switches 616, 618, 620, and 622 are switched on or off according to program signal M, specifically bit M[0] (speed) and its complement.

Similarly, current through transistor M2 is mirrored through a current mirror 624 comprising MOSFETs M4A, M4B, M6A1, and M6B1 to output node 528. In other modes, additional MOSFETs M6A2 and M6B2 and M6A3 and M6B3 are selectively added to current mirror 624 according to program signal M.

The exemplary embodiment also includes a circuit block 630 which is responsive to the enable signal to put transconductor 520 in an active or inactive state. In the inactive state, the circuit is in effect idling, to reduce the time necessary to bring the transconductor to a fully active state. Additionally, the exemplary embodiment includes strategic load transistors, specifically MOSFETs I370 and I371, to enhance power supply rejection and minimize common-mode gain.

See copending U.S. patent application Phase-locked Loop and Transconductance Circuit for Clock Recovery, Serial No. 09/218382, which is also incorporated herein by reference, for other transconductance circuits that may be adapted for use in receiver 500. See also copending patent application which is entitled Programmable Transconductance for High-Speed Communication Circuits and which is also incorporated herein by reference.

Frequency detector 530 has inputs 532 and 534 and an output 536. Inputs 532 and 534 are coupled respectively to reference-clock input 102 and frequency-divider output 154. Output 536, denoted ENABLE, is coupled to enable input 129 of programmable charge pump 120 and to enable input 529 of programmable transconductor 520. Frequency detector 530 determines whether output of the frequency divider at output 154 is close enough in frequency to the reference clock input REF₁₃CLK, de-asserting the enable signal at output 536 to disable programmable charge pump 120 and to enable operation of programmable transconductor 520. In the exemplary embodiment, frequency detector 530 de-asserts the enable signal when the frequency divider output has a frequency within two percent of the reference-clock frequency.

FIG. 7 shows an exemplary embodiment of frequency detector 530, including eight-bit counters 710 and 712, dynamic D-type flip-flops 714, 716, 718, and 720, and an enable block 722. In operation, counters 710 and 720 count respectively the transitions in the reference clock and the transitions in the output of the frequency divider. Enable block 720 monitors the difference between the two counts, outputting a logic low ENABLE signal when the difference is less than 2.0 percent and a logic high ENABLE signal when the difference is greater than 3.5 percent. If the difference is between 2.0 and 3.5 percent, the ENABLE signal remains in its previous state, meaning that the frequency detector exhibits hysteresis. This property is provided to ensure stability of the ENABLE signal. Other implementations could use different hysteresis points.

Thus, FIG. 5 shows that the exemplary receiver includes two phase-locked loops: a coarse loop that locks to the reference-clock input, and a fine loop that locks to the input data, with the coarse loop switch off and the fine loop switched on when the frequency of the frequency-divider output is deemed closed enough to that of the reference clock. Both loops share oscillator 140, and both loops are programmable for different operating frequencies.

From the equations governing programming of the coarse loop (that is, equation 1-8), it is known that increasing the operating frequency of the loop by a factor of M while maintaining constant damping and loop bandwidth entails changing both the oscillator gain Ko and the loop-filter filter resistance by a factor of M, specifically increasing the oscillator gain Ko and decreasing the loop-filter resistance. Mathmatically expressing the new oscillator gain K′ and decreasing the resistance R′ in terms of the old and the factor M yields

 K ¹ =M*K ₀  (9)

R ¹ =R/M  (10)

In general, the natural frequency, or loop bandwidth, ω_(N) of the fine loop can be approximated as $\begin{matrix} {\omega_{N} \approx \sqrt{\frac{K_{o}*{SR}*{GM}*8}{2\pi*{bit}\quad {rate}*C_{2}}}} & (11) \end{matrix}$

where SR is the slew rate of the input signal, Ko is the voltage-controlled oscillator gain, GM is the transconductance, and bit_rate is (that is, number of bits per second)of the input data signal.

Increasing the oscillator gain and the bit rate by the factor M and assuming the slew rate SR remains constant yields the following new loop bandwidth ω′_(N): $\begin{matrix} {\omega_{N}^{\prime} \approx \sqrt{\frac{M*K_{o}*{SR}*{GM}^{\prime}*8}{M*{bit}\quad {rate}}}} & (12) \end{matrix}$

where GM′ denotes the transconductance associated with the new bandwidth and where M in the numerator and denominator cancel. Setting equation (12) equal to M*ω′_(N) and solving for GM′ gives

GM ¹ ≈M ² *GM  (13)

Thus, to program receiver 500 for a factor M increase in operating frequency while also maintaining a constant damping factor and constant input-frequency-to-natural-loop-frequency ratio entails: reducing the loop resistance by the factor M; increasing oscillator gain and charge-pump pump current output by the factor M; and increasing transconductance by the square of the factor M.

Exemplary Transmitter Incorporating Programmable Phase-locked Loop

FIG. 8 shows an exemplary transmitter 800 which incorporates the exemplary phase-locked loop 100 of FIG. 1 along with a data register 810 and a parallel-to-serial converter 820. Within transmitter 800, phase-locked loop 100 functions as a programmable clock multiplier, with the output of voltage-controlled oscillator 140 clocking data out of parallel-to-serial converter 820.

More particularly, data register 810 includes a number n data inputs 812 for registering and/or buffering one or more n-bit data words. Parallel-to-serial converter 820, coupled to data register 810 via inputs 822, converts n-bit data words received from register 810 to single-ended or differential serial data. Converter 820 has an input 824 which is coupled to voltage-controlled oscillator 140, and outputs 826 and 828 which output differential serial data.

Exemplary Devices and System Incorporating Programmable Phase-Lock Loops

FIG. 9 shows an exemplary system 900 incorporating teachings of the present invention. In particular, system 900 includes electronic devices 910 and 920 and a communication link 930. Devices 910 and 920 include respective integrated transceiver circuits 912 and 922, each of which includes one or more exemplary programmable receivers 500 and one or more exemplary programmable transmitters 800. (In some embodiments, the receiver and transmitter share circuitry with appropriate switching circuitry coordinating their operation.) Communication link 930, which lacks a data-synchronizing clock line in the exemplary embodiment, carries data between the devices 910 and 920 at data rates of 1.25, 2.5, or 3.125 Gbps. However, other embodiments implement other sets of discrete programmable operating frequencies, with higher or lower frequencies and/or lesser or greater numbers of frequencies.

Conclusion

In furtherance of the art, the present inventors have presented new digitally programmable phase-locked loop, related methods, and applications. An exemplary phase-locked loop includes three programmable components: a charge pump, loop filter, and oscillator. Notably, the programmability of these three components enables the exemplary embodiment to maintain a constant damping factor and a constant ratio of input frequency to loop bandwidth for each frequency setting. Applications for this phase-locked loop include receivers, transmitters, and transceivers and promise to enable flexible high-speed communications at a number of selectable frequencies.

The embodiments described above are intended only to illustrate and teach one or more ways of practicing or implementing the present invention, not to restrict its breadth or scope. The actual scope of the invention, which embraces all ways of practicing or implementing the teachings of the invention, is defined only by the following claims and their equivalents. 

What is claimed is:
 1. A programmable phase-locked loop comprising: a reference-clock input; a program input for receiving a program signal associated with one or more bits; a phase-frequency detector having first and second inputs and an output, with the first input coupled to the reference-clock input; a programmable charge pump having a first input coupled to the output of the phase-frequency detector, a second input coupled to the program input, and an output for producing a current based on signals at the first input and the second input, the current being substantially proportional to the program signal; a programmable loop filter having a first input coupled to the output of the charge pump, and a second input coupled to the program input to adjust a characteristic frequency response of the loop filter, the characteristic frequency response being substantially proportional to the program signal; and a programmable oscillator having a first input coupled to the programmable loop filter, a second input coupled to the program input, and an output coupled to the phase-frequency detector for producing an oscillating signal having a frequency based on the signals at its input and the program input, the programmable oscillator having a gain substantially proportional to the program signal.
 2. The programmable phase-locked loop of claim 1, further comprising: a frequency divider coupled between the output of the programmable oscillator and the second input of the phase-frequency detector.
 3. The programmable phase-locked loop of claim 1, wherein the programmable loop filter includes a programmable resistance responsive to the program signal at the program input.
 4. The programmable phase-locked loop of claim 1, wherein the programmable oscillator comprises a programmable voltage-controlled oscillator.
 5. The phase-locked loop of claim 1, wherein the program signal comprises a digital word including two or more bits.
 6. An integrated circuit comprising: a reference-clock input; a program input for receiving a program signal associated with one or more bits; a phase-frequency detector having first and second inputs and an output, with the first input coupled to the reference-clock input; a programmable charge pump having a first input coupled to the output of the phase-frequency detector, a second input coupled to the program input, and an output for producing a current based on signals at the first input and the second input, the current being substantially proportional to the program signal; a programmable loop filter having a first input coupled to the output of the charge pump, and a second input coupled to the program input to adjust a characteristic frequency response of the loop filter, the characteristic frequency response being substantially proportional to the program signal; and a programmable oscillator having a first input coupled to the programmable loop filter, a second input coupled to the program input, and an output coupled to the phase-frequency detector for producing an oscillating signal having a frequency based on the signals at its input and the program input, the programmable oscillator having a gain substantially proportional to the program signal.
 7. A phase-locked loop comprising: a reference-clock input; a program input for receiving a program signal associated with one or more bits; a phase-frequency detector having first and second inputs and an output, with the first input coupled to the reference-clock input; a programmable charge pump having a first input coupled to the output of the phase-frequency detector, a second input coupled to the program input, and an output for producing a current based on signals at the first input and the second input, a programmable loop filter having a first input coupled to the output of the charge pump, and a second input coupled to the program input to adjust a characteristic frequency response of the loop filter; a programmable oscillator having a first input coupled to the programmable loop filter, a second input coupled to the program input, and an output coupled to the phase-frequency detector for producing an oscillating signal having a frequency based on the signals at its first input and the program input; means for maintaining a constant damping factor; and means for maintaining a constant ratio of input frequency to loop bandwidth.
 8. An integrated circuit comprising: a reference-clock input; a program input for receiving a program signal associated with one or more bits; a phase-frequency detector having first and second inputs and an output, with the first input coupled to the reference-clock input; a programmable charge pump having a first input coupled to the output of the phase-frequency detector, a second input coupled to the program input, and an output for producing a current based on signals at the first input and the second input; a programmable loop filter having a first input coupled to the output of the charge pump, and a second input coupled to the program input to adjust a characteristic frequency response of the loop filter; a programmable oscillator having a first input coupled to the programmable loop filter, a second input coupled to the program input, and an output coupled to the phase-frequency detector for producing an oscillating signal having a frequency based on the signals at its first input and the program input; means for maintaining a constant damping factor; and means for maintaining a constant ratio of input frequency to loop bandwidth. 